<template>
  <MenuNavigation />
  <div
    ref="exhibits16"
    class="jy-style-height exhibits-box"
    id="exhibits-box-id"
    :class="{
      scrollType1: type,
      scrollType2: !type,
    }"
    :style="{
      backgroundImage: `url(${publicUrls + 'free/style14/style14publicBg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="back-btn" @click="blankHome">
      <img :src="publicUrls + 'free/style14/style14BackIcon.png?imageView2/3/format/webp'" alt="" />
    </div>
    <div class="ex-btn-box">
      <div class="btn-icon" v-if="!store.isMobileType">
        <img
          :src="publicUrls + 'free/style14/screenIcon2.png?imageView2/3/format/webp'"
          alt=""
          @click="visible = true"
          v-if="!isMassage"
        />
        <img
          :src="publicUrls + 'free/style14/screenIcon1.png?imageView2/3/format/webp'"
          alt=""
          @click="visible = true"
          v-else
        />
      </div>
      <t-popup
        :content="type ? '横排布局' : '宫格布局'"
        v-if="!store.isMobileType"
        placement="bottom"
        showArrow
        attach="#percentage-text"
      >
        <div class="btn-icon layout-icon">
          <img
            :src="publicUrls + 'free/style14/layoutIcon2.png?imageView2/3/format/webp'"
            alt=""
            v-if="type"
            @click="type = false"
          />
          <img
            :src="publicUrls + 'free/style14/layoutIcon1.png?imageView2/3/format/webp'"
            alt=""
            v-else
            @click="type = true"
          />
        </div>
      </t-popup>
    </div>
    <div class="content-box" :class="!type && 'content-box-warp'">
      <div
        class="public-name"
        :style="{
          backgroundImage: `url(${publicUrls + 'free/style14/publicTitleBg.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <img :src="publicUrls + 'free/style14/publicName1.png?imageView2/3/format/webp'" alt="" />
      </div>
      <component
        :is="components"
        color="rgba(50, 43, 37, 1)"
        v-if="type ? viewportwidth : viewportheight"
        :byid="type ? 9237 : 9527"
        :width="type ? getScrollWidth : getScrollHeight"
        :scroll-src="publicUrls + 'free/style14/scrollIcon.png'"
        :checkHeight="true"
      >
        <!-- 内容 -->
        <template #[dynamicSlotName]>
          <div class="right-scroll" :class="{ 'right-type': !type, 'right-scroll-min': list.length <= 4 && type }">
            <div class="is-null" v-if="list.length === 0 && !loading">
              <span>暂无展品</span>
            </div>
            <div
              class="item-parent"
              :class="type ? 'item-parent-nowrap' : 'item-parent-wrap'"
              :style="{ 'margin-right': !type && (index + 1) % 4 === 0 ? '0px' : '' }"
              v-else
              v-for="(item, index) in list"
              :key="item.id"
            >
              <div class="scroll-item" @click="pathInfo(item.moduleId, item.id)">
                <img class="ex-top-left ex-icons" :src="publicUrls + 'free/style14/exhibitsIcon.png'" alt="" />
                <img class="ex-top-right ex-icons" :src="publicUrls + 'free/style14/exhibitsIcon.png'" alt="" />
                <img class="ex-bottom-left ex-icons" :src="publicUrls + 'free/style14/exhibitsIcon.png'" alt="" />
                <img class="ex-bottom-right ex-icons" :src="publicUrls + 'free/style14/exhibitsIcon.png'" alt="" />
                <div class="exImg-box">
                  <img
                    :src="$filters.getLinkUrl(item?.coverUrl, '?imageView2/3/w/560/format/webp')"
                    alt=""
                    class="empty-img"
                  />
                </div>
                <div class="exTitle">
                  {{ item.name }}
                </div>
              </div>
            </div>
          </div>
        </template>
        <!-- 滚动条 -->
        <template #[dynamicSlotChild]>
          <div class="solidBorder-child1" :class="!type && 'solidBorder-child2'"></div>
        </template>
      </component>
    </div>
    <div class="content-door">
      <i class="iconfonts">&#xe6dd;</i>
      <span>永不落幕的展览与展示平台</span>
    </div>
    <t-drawer
      @close="init(2)"
      placement="right"
      :attach="exhibits16"
      v-model:visible="visible"
      show-in-attached-element
    >
      <div class="seach-box" id="seach-box-style4-id">
        <p class="seach-box-title">
          <span class="seach-box-title-1">筛选和搜索</span>
          <span class="close-text" @click="visible = false">关闭</span>
        </p>
        <div class="seach-items">
          <div class="input-box-left">
            <t-input @enter="seachValue" v-model="parmas.value" placeholder="输入展品名称查找" style="width: 100%">
            </t-input>
          </div>
          <div @click="seachValue" class="button-style">搜索</div>
        </div>
        <div class="seach-item first-item">
          <span>类型</span>
          <t-select
            @change="select3Change"
            v-model="parmas.typeId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.select3" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>年代</span>
          <t-cascader
            v-if="clseaSelcet"
            @change="ageIdChange"
            placeholder=""
            v-model="parmas.ageId"
            :options="datas.select4"
            :popupProps="{
              attach: `#Cultural-box-id`,
            }"
            valueType="full"
            :keys="{
              value: 'id',
              children: 'children',
              label: 'text',
            }"
          />
        </div>
        <div class="seach-item">
          <span>单元</span>
          <t-select
            @change="moduleListChange"
            v-model="parmas.ModuleId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.moduleList" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>

        <div class="seach-item">
          <span>单位</span>
          <t-select
            @change="companyChange"
            v-model="parmas.CompanyId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.company" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item last-item">
          <span>级别</span>
          <t-select
            @change="select1Change"
            v-model="parmas.levelId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.select1" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="btn-box">
          <div @click="clear" class="btn-box-item1">
            <span>清空</span>
          </div>
          <div @click="seachInit" class="btn-box-item2">
            <span>筛选</span>
          </div>
        </div>
      </div>
    </t-drawer>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
  name: 'style14',
});
</script>
<script lang="ts" setup>
// @ts-nocheck
import { doorUrl } from '@/utils/minxin';
import { publicUrls, filterHTML } from '@/utils/minxin';
import { useRouter, useRoute } from 'vue-router';
import { ref, watch, reactive, nextTick, computed, onActivated, defineComponent, onDeactivated } from 'vue';
import { exhibitionData } from '@/api/templates/templates';
import { companysData, modulesData } from '@/api/templates/templates';
import { useProjectStore, commonDataStore } from '@/store';
import { storeToRefs } from 'pinia';
import ScrollBoxCom from '../scrollBox.vue';
// import ScrollBoxCom2 from '../../message/scrollBox10.vue';
import ScrollBoxCom2 from '../scrollBoxUp.vue';
// import ScrollBoxCom from '../../Cultural/scrollBox10.vue';
import { treeList } from '@/api/user/user';
import { exhibitShowpiece } from '@/api/templates/templates';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const clseaSelcet = ref(true);
const topShow = ref(false);
const scrollNumber = ref(0);
const heartbeat = ref(0); //页面心跳值
const Scrollwidth = ref();
const scrollheight = ref();
const exhibits16 = ref(null); //父元素挂在ref
const visible = ref(false);
const scrollBox = ref(null);
const percentage = ref(0);
const list = ref([]);
const cascader = ref(true);
const type = ref(true);
const total = ref(0);
const loading = ref(false);
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const datas = reactive({
  select1: [{ id: -1, text: '全部' }], //级别
  select2: [{ id: 0, text: '全部' }], //来源
  select3: [{ id: -1, text: '全部' }], //类型
  select4: [{ id: 0, text: '全部' }], //年代
  company: [], //单位
  moduleList: [], //单元
});
const parmasList = ref({
  typeId: '',
  ageId: '',
  levelId: '',
  ModuleId: '',
  CompanyId: '',
});
const isMobile = navigator.userAgent.match(
  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
const info = ref({});
const previewId = ref(0); //当前选中查看展品id
const InfomoduleId = ref(0);
const selectModuleId = ref(1);
const selecttypeId = ref(-1);
const selectCompanyId = ref(-1);
const parmas = reactive({
  value: '',
  typeId: -1,
  ageId: [0],
  levelId: -1,
  ModuleId: 1,
  CompanyId: -1,
  pageNo: 1,
  pageSize: 300,
});

let viewportwidth = window.innerWidth;
Scrollwidth.value = (viewportwidth / 900) * 560;

let viewportheight = window.innerHeight;
scrollheight.value = (viewportheight / 900) * 520;

const getScrollWidth = computed(() => {
  let widths = (window.innerWidth / 900) * 560;
  return widths;
});

const getScrollHeight = computed(() => {
  let heights = (window.innerHeight / 900) * 480;
  return heights;
});

const isMassage = computed(() => {
  return (
    parmas.value != '' ||
    (parmas.typeId != null && parmas.typeId != -1) ||
    parmas.ageId[0] !== 0 ||
    (parmas.levelId != null && parmas.levelId != -1) ||
    parmas.ModuleId != 1 ||
    parmas.CompanyId != -1
  );
});

const components = computed(() => {
  if (type.value) return ScrollBoxCom;
  else return ScrollBoxCom2;
});

const dynamicSlotName = computed(() => {
  if (type.value) return 'solidBorderExcon';
  else return 'solidBorderCon';
});

const dynamicSlotChild = computed(() => {
  if (type.value) return 'solidBorderExbar';
  else return 'solidBorderEx';
});

const initDetail = async () => {
  try {
    let { data } = await exhibitShowpiece(InfomoduleId.value, previewId.value);
    info.value = data;
    console.log(info.value);
  } catch {}
};
const init = async (type?: number) => {
  try {
    if (loading.value) {
      return;
    }
    loading.value = true;
    // console.log(parmas);
    // let arr = parmas;
    // arr.ageId = arr.ageId[arr.ageId.length - 1];
    let { data } = await exhibitionData(localStorage.getItem('projectId'), {
      value: parmas.value,
      typeId: parmas.typeId,
      ageId: parmas.ageId[parmas.ageId.length - 1],
      levelId: parmas.levelId,
      ModuleId: parmas.ModuleId,
      CompanyId: parmas.CompanyId,
      pageNo: parmas.pageNo,
      pageSize: parmas.pageSize,
    });
    total.value = data.total;

    if (type) {
      list.value = data.data;
    } else {
      list.value = list.value.concat(data.data);
    }
    // console.log(list.value);
    scrollBox.value.scrollLeft = 0;
    topShow.value = false;
    // list.value = [];
    loading.value = false;
  } catch {
    loading.value = false;
  }
};
const closeType = (type: number) => {
  switch (type) {
    case 1:
      parmasList.value.typeId = '';
      parmas.typeId = -1;
      break;
    case 2:
      parmasList.value.ageId = '';
      parmas.ageId = [0];
      break;
    case 3:
      parmasList.value.levelId = '';
      parmas.levelId = -1;
      break;
    case 4:
      parmasList.value.ModuleId = '';
      parmas.ModuleId = 1;
      break;
    default:
      parmasList.value.CompanyId = '';
      parmas.CompanyId = -1;
      break;
  }
  init(2);
};
const emitTop = () => {
  //点击回到列表最左侧
  scrollBox.value.scrollLeft = 0;
  percentage.value = 0;
  topShow.value = false;
};
const preview = (id: number, moduleId: number) => {
  previewId.value = id;
  InfomoduleId.value = moduleId;
  initDetail();
};
const initSelect = async () => {
  //初始化所有下拉选项

  let res2 = await treeList(371999507447877); //类型
  let res3 = await treeList(372051821408325); //年代

  // datas.select2 = res1.data;
  datas.select3 = datas.select3.concat(res2.data);
  datas.select4 = datas.select4.concat(res3.data);
};
const initInfo = async () => {
  let { data } = await companysData(localStorage.getItem('projectId'));
  let DataList = await modulesData(localStorage.getItem('projectId'));
  let res = await treeList(371994471206981); //级别
  datas.select1 = datas.select1.concat(res.data);
  datas.moduleList = datas.moduleList.concat(DataList.data);
  datas.company = datas.company.concat(data);
};

initInfo();
initSelect();
const seachValue = () => {
  parmas.pageNo = 1;
  visible.value = false;
  init(2);
};
const seachInit = () => {
  visible.value = false;
  //   if (selectModuleId.value) {
  //     parmas.ModuleId = selectModuleId.value;
  //   }
  //   if (selecttypeId.value != -1) {
  //     parmas.typeId = selecttypeId.value;
  //   }
  //   if (selectCompanyId.value != -2) {
  //     parmas.CompanyId = selectCompanyId.value;
  //   }
  parmas.pageNo = 1;
  init(1);
};
const moduleListChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.ModuleId = context.option.label;
};
const select3Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.typeId = context.option.label;
};
const companyChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.CompanyId = context.option.label;
};
const select1Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.levelId = context.option.label;
};
// 年代
const ageIdChange = (e, context) => {
  //   console.log(context.node.labelnia)
  parmasList.value.ageId = context.node.label;
  //   parmasList.value.levelId = context.option.label;
};

const clear = () => {
  parmas.value = '';
  parmas.typeId = -1;
  parmas.ageId = [0];
  parmas.levelId = -1;
  parmas.ModuleId = 1;
  parmas.CompanyId = -1;
  selectModuleId.value = 1;
  selecttypeId.value = -1;
  selectCompanyId.value = -1;
  visible.value = false;
  parmasList.value.typeId = '';
  parmasList.value.ageId = '';
  parmasList.value.levelId = '';
  parmasList.value.ModuleId = '';
  parmasList.value.CompanyId = '';
  clseaSelcet.value = false;
  nextTick(() => {
    clseaSelcet.value = true;
  });
  init(2);
};
const pathInfo = (moduleId: number, e?: number) => {
  //查看展品详情
  store.exhibitsModuleId = moduleId;
  store.exhibitsShowpieceid = e;
  store.exhibitsInfoShow = true;

  //   router.push({
  //     name: route.meta.loopType ? pathLoop[2] : path[2],
  //     query: {
  //       showpieceid: e,
  //       moduleId: moduleId,
  //     },
  //   });
};
const blankRoute = () => {
  router.replace({ name: route.meta.loopType ? pathLoop[0] : path[0] }); // 替换为你要跳转的新路由路径
};
const handleScroll = (event) => {
  event.preventDefault(); // 阻止默认滚动行为
  const { deltaY } = event;

  // 获取滚动内容的 DOM 元素
  const contentEl = scrollBox.value;

  // 将滚动盒子向前滚动
  contentEl.scrollLeft += deltaY;
  scrollNumber.value = contentEl.scrollLeft;
  if (contentEl.scrollWidth > contentEl.clientWidth) {
    if (
      contentEl.scrollWidth < contentEl.scrollLeft + contentEl.clientWidth + 100 &&
      !loading.value &&
      list.value.length < total.value
    ) {
      parmas.pageNo = parmas.pageNo + 1;
      init();
    }
    nextTick(() => {
      const { scrollLeft, clientWidth, scrollWidth } = scrollBox.value;
      if (scrollLeft > 100) {
        topShow.value = true;
      }
      if (scrollLeft < 100) {
        topShow.value = false;
      }
      const newScrollPercentage = Math.floor((scrollLeft / (scrollWidth - clientWidth)) * 100);
      percentage.value = newScrollPercentage;
    });
  }
};
init();
onActivated(() => {
  // heartbeat.value
  if (heartbeat.value !== store.heartbeatCurrent) {
    scrollBox.value.scrollLeft = 0;
    scrollNumber.value = 0;

    clear();
  } else {
    nextTick(() => {
      if (scrollNumber.value) {
        scrollBox.value.scrollLeft = scrollNumber.value;
      }
    });
  }
  heartbeat.value = store.heartbeatCurrent;
});
onDeactivated(() => {
  clear();
});
const blankHome = () => {
  clear();
  //   store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
// import { publicUrls } from '@/utils/minxin';
// import { commonDataStore } from '@/store';
// const commonStore = commonDataStore();
// import { useRouter, useRoute } from 'vue-router';
// const router = useRouter();
// const route = useRoute();
// const blankHome=()=>{
//     router.push({name:route.meta.loopType?'exhibitionHome' : 'templateedit'})
// }
</script>

<style lang="less" scoped>
.exhibits-box {
  position: relative;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 116px 80px 58px 80px;
}
.content-door {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  cursor: pointer;
  .iconfonts {
    font-size: 26px;
    color: #fff;
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: #fff;
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
.back-btn {
  position: absolute;
  top: 60px;
  left: 80px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.ex-btn-box {
  position: absolute;
  top: 60px;
  right: 80px;
  width: auto;
  display: flex;
  align-items: center;
}
.btn-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
::v-deep .t-popup__content {
  width: 76px;
  height: 30px;
  background: #3586f3;
  box-shadow: none;
  padding: 4px 10px 4px 10px;
  color: #fff;
  font-family: 'PingFang SC';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 157.143% */
  .t-popup__arrow::before {
    background: #3586f3;
    box-shadow: none;
  }
}
.layout-icon {
  margin-left: 12px;
}
.content-box {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 100px 100px 80px 100px;
}
.content-box-warp {
  padding: 120px 180px 120px 180px;
  ::v-deep .unit-exbit-null-remarks-info {
    .solid-box-parent {
      position: absolute !important;
      top: 50% !important;
      right: -36px !important;
      transform: translateY(-50%);
      .templatestyle1-scroll-box-tumb {
        justify-content: center;
      }
      img {
        margin-top: 3px !important;
        margin-left: 0 !important;
      }
    }
    .unit-exbi-remarks-info-remarks {
      width: 100% !important;
    }
  }
}
.public-name {
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
  width: 370px;
  height: 116px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  img {
    width: 142px;
    height: 34px;
    flex-shrink: 0;
    object-fit: fill;
  }
}
.solidBorder-child1 {
  height: 2px;
  width: 100%;
  background: #19326d;
}
.solidBorder-child2 {
  width: 2px;
  height: 100%;
  background: #19326d;
}
::v-deep .unit-exbit-null-remarks-info {
  max-height: 100% !important;
  .unit-exbi-remarks-info-remarks {
    max-height: 100% !important;
  }
  .solid-box-parent {
    img {
      width: 18px;
      height: 18px;
      margin-top: 6px;
      margin-left: 12px;
    }
  }
}
.right-type {
  display: grid !important;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px 60px;
  justify-items: stretch;
  // padding-left: 90px !important;
  padding-right: 0px !important;
}

.right-scroll {
  display: flex;
  height: auto;
}
.is-null {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  span {
    font-size: 20px;
    line-height: 32px;
    color: #fff;
    opacity: 0.5;
  }
}
.right-scroll-min {
  margin: 0 auto;
}
.right-scroll::-webkit-scrollbar {
  display: none;
}
.item-parent {
  width: 300px;
  height: 440px;
}
.item-parent-wrap {
  width: 100%;
  max-width: 270px;
  height: 380px;
  .exImg-box {
    width: 100%;
    max-width: 216px;
    height: 280px;
  }
  .exTitle {
    width: 100%;
    max-width: 216px;
    margin-top: 14px;
  }
}
.item-parent-nowrap {
  margin-right: 30px;
  &:last-child {
    margin: 0;
  }
}
.scroll-item {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid #d4bb8f;
  background: radial-gradient(78.25% 76.86% at 50% 23.14%, #0054d4 0%, #002c6e 100%);
  margin-bottom: 42px;
  padding: 30px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.ex-icons {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: fill;
}
.ex-top-left {
  top: 10px;
  left: 10px;
}
.ex-top-right {
  top: 10px;
  right: 10px;
  transform: rotate(90deg);
}
.ex-bottom-left {
  bottom: 10px;
  left: 10px;
  transform: rotate(-90deg);
}
.ex-bottom-right {
  bottom: 10px;
  right: 10px;
  transform: rotate(180deg);
}
.exImg-box {
  flex-shrink: 0;
  width: 246px;
  height: 330px;
  border-radius: 16px;
  border: 2px solid #d4bb8f;
  overflow: hidden;
  .empty-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s;
  }
}
.exImg-box:hover {
  .empty-img {
    transform: scale(1.2);
  }
}
.exTitle {
  flex-shrink: 0;
  width: 234px;
  color: #fff;
  text-align: center;
  font-family: 'SourceHanSerifCN';
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 180%; /* 32.4px */
  margin-top: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
::v-deep .t-drawer__content-wrapper {
  width: 520px !important;
  background: radial-gradient(101.77% 98.29% at 50% 1.71%, #0054d4 0%, #002c6e 100%);
  overflow: visible;
  .seach-box-title {
    color: #fff;
    font-family: 'SourceHanSerifCN';
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 33px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    .close-text {
      font-family: 'PingFang SC';
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 28px; /* 155.556% */
      cursor: pointer;
    }
  }
  .t-cascader__popup {
    transform: translate(40px, 36px) !important;
    .t-cascader__menu--segment {
      border-right: 1px solid #002c6e50;
    }
    .t-cascader__item {
      opacity: 0.5;
    }
    .t-cascader__item:hover {
      opacity: 0.8;
      background: rgba(0, 22, 102, 0.3);
    }
    .t-is-expanded {
      color: #fff;
      background: transparent !important;
      opacity: 1;
    }
    .t-cascader__item-label {
      flex: 1;
    }
  }
  .t-popup__content {
    width: auto !important;
    left: -40px;
    height: 100%;
    scrollbar-width: none;
    border: none;
    .t-select__list {
      padding: 0;
      width: 340px;
    }
    .t-select-option {
      color: #fff !important;
      font-family: 'PingFang SC';
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 26px; /* 144.444% */
      opacity: 0.5;
      padding-left: 38px;
      div {
        display: none;
      }
    }
    .t-select-option__hover:not(.t-is-disabled).t-select-option__hover:not(.t-is-selected) {
      opacity: 0.8;
      background: rgba(0, 22, 102, 0.3);
    }
    .t-is-selected {
      opacity: 1;
      background: transparent !important;
      span {
        color: #fff;
      }
    }
    .t-cascader__menu {
      background: #3586f3;
      scrollbar-width: none;
      z-index: 999;
    }
  }
  .last-item {
    margin-bottom: 120px !important;
  }
  .seach-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 56px;
    cursor: pointer;
    span {
      flex-shrink: 0;
      color: #fff !important;
      font-family: 'PingFang SC';
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 36px; /* 200% */
    }

    .t-input {
      height: 36px;
      background-color: transparent;
      border: none;
      justify-content: flex-end;
      overflow: visible;
    }
    .t-input__inner {
      width: 100%;
      position: absolute;
      bottom: -32px;
      left: -36px;
      color: #3586f3;
      font-family: 'PingFang SC';
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 26px; /* 144.444% */
    }
    .t-fake-arrow {
      color: #fff;
    }
  }
  .seach-items {
    margin-top: 24px;
    margin-bottom: 32px;
    width: 100%;
    position: relative;
    .input-box-left {
      width: 100%;
      height: 50px;
      border-radius: 4px;
      background: rgba(53, 134, 243, 0.3);
    }
    .t-input__wrap {
      height: 100%;
      .t-input {
        padding: 0 20px;
      }
      .t-input__inner::placeholder {
        color: #3586f3;
        font-family: 'PingFang SC';
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px; /* 144.444% */
      }
      .t-input__inner {
        color: #fff;
      }
    }
    .button-style {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 10;
      width: 90px;
      height: 50px;
      border-radius: 4px;
      background: #3586f3;
      color: #fff;
      font-family: 'PingFang SC';
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 50px; /* 150% */
      text-align: center;
      cursor: pointer;
    }
  }
  .t-drawer__body {
    padding: 127px 80px 45px 80px;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .t-drawer__footer {
    display: none;
  }
  .t-input {
    background: transparent;
    border: none;
    height: 100%;
  }
  .t-input__inner {
    height: 100%;
  }
  .t-icon {
    color: #ffffff;
    flex-shrink: 0;
  }
  .btn-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .btn-box-item1,
    .btn-box-item2 {
      height: 48px;
      flex-shrink: 0;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #fff;
      font-family: 'PingFang SC';
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
    }
    .btn-box-item1 {
      width: 92px;
      border: 1px solid #fff;
    }
    .btn-box-item2 {
      width: 250px;
      background: #3586f3;
    }
  }
}
</style>
